/* eslint-disable jsx-quotes */
import Taro from "@tarojs/taro";
import { useEffect } from "react";
import { AtButton, AtInput } from "taro-ui";
import { Form } from "@tarojs/components";
import "./login.scss";

const Login = () => {
  useEffect(() => {
    Taro.hideHomeButton(); // 隐藏Home按钮
  });

  return (
    <Form className="loginForm">
      <AtInput
        className="nameInput"
        name="loginName"
        type="text"
        placeholder="请填写用户名"
        value=""
      />
      <AtInput
        className="passwordInput"
        name="password"
        type="text"
        placeholder="请填写密码"
        value=""
      />
      <AtButton type="primary">登录</AtButton>
    </Form>
  );
};

export default Login;
